#ifndef MESH_MANAGER_H_INCLUDED 
#define MESH_MANAGER_H_INCLUDED 

#include "Singleton.h"
#include "ObjMesh.h"
#include <map>

class ObjMesh;

class MeshManager : public Uncopyable
{
public:
	bool Load(const std::string& fileName);
	void DrawMesh(const std::string& meshName);
	ObjMesh* GetMesh(const std::string& meshName);
private:
	MeshManager();
	friend class Singleton<MeshManager>;

	std::map<std::string, ObjMesh*> m_meshes;
	std::map<std::string, ObjMesh*>::iterator m_it;
};

typedef Singleton<MeshManager> TheMeshManager;

#endif